home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18546 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  892 b 

  1. Path: lyra.csx.cam.ac.uk!lhkc100
  2. From: lhkc100@thor.cam.ac.uk (L.H.K. Chan)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help!  Strange error
  5. Date: 21 Apr 1996 13:06:03 GMT
  6. Organization: University of Cambridge, England
  7. Message-ID: <4ldbrr$hu0@lyra.csx.cam.ac.uk>
  8. NNTP-Posting-Host: hammer.thor.cam.ac.uk
  9.  
  10. Hi expert!  Recently I have got a compiler error which could hardly be understood.
  11. The compiler has given me the following error message.
  12.  
  13. "Base class .... has incomplete type"
  14.  
  15. But when I commented out a member function in the base class, the compiler did
  16. not complain any more.
  17.  
  18. Actually the member function in question is something like
  19.  
  20.  
  21. Iterator<T> create_iterator() const;
  22.  
  23.  
  24. I have declared template Iterator<T>  before  "this base class".  Anyone can help
  25. me?
  26.  
  27. In general, where can you find explanations of common c++ compiler error messages
  28. (I am using g++ )
  29.  
  30. Thanks in advance
  31.  
  32. Kelvin 
  33.